' Prints the specified file. Use in place of SpoolFile
' Scott Johnston 7-29-94 CIS:72677,1570 MHS:ScottJ@Alta
DefInt A-Z
Type DOCINFO
cbSize As Integer
lpszDocName As Long
lpszOutput As Long
End Type
Declare Function CreateDC Lib "GDI" (ByVal lpDriverName As String, ByVal lpDeviceName As String, ByVal lpOutput As String, ByVal lpInitData As String) As Integer
Declare Function DeleteDC Lib "GDI" (ByVal hdc As Integer) As Integer
Declare Function Escape Lib "GDI" (ByVal hdc As Integer, ByVal nEscape As Integer, ByVal nCount As Integer, ByVal lplnData As Any, ByVal lpOutData As Any) As Integer
Declare Function StartDoc Lib "GDI" (ByVal hdc As Integer, lpdi As DOCINFO) As Integer
Declare Function EndDocAPI Lib "GDI" Alias "EndDoc" (ByVal hdc As Integer) As Integer
Declare Function GetProfileString Lib "Kernel" (ByVal lpAppName As String, ByVal lpKeyName As Any, ByVal lpDefault As String, ByVal lpReturnedString As String, ByVal nSize As Integer) As Integer
Declare Function lstrcpy Lib "Kernel" (ByVal lpString1 As Any, ByVal lpString2 As Any) As Long
Global Const QUERYESCSUPPORT = 8
Global Const PASSTHROUGH = 19
Sub GetDefPrinter (printDriver$, printDevice$, printOut$)